package cn.dm.service;


import cn.dm.pojo.User;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

@Service
@RequestMapping("/refactor")
public interface FeignService {
        @RequestMapping(value = "/hello4", method = RequestMethod.GET)
        public String hello(@RequestParam String name);

        @RequestMapping(value = "/hello5", method = RequestMethod.GET)
        public String hello(@RequestParam String name, @RequestParam Integer age);

        @RequestMapping(value = "/hello6", method = RequestMethod.POST)
        public String hello(@RequestBody User user);

        @GetMapping("/hello7")
        public String hello();
}
